jlink: Hash of module differs to expected hash recorded in java.base
authorJulian Gilbey <jdg@debian.org>
Sat, 29 Nov 2025 18:56:59 +0000 (19:56 +0100)
committerMatthias Klose <doko@ubuntu.com>
Sat, 29 Nov 2025 18:56:59 +0000 (19:56 +0100)
commit37eaa9945a81fad00076ad7f08cc3bfed9471bcd
tree0d1d8ba1b312bdf7013e39e747e1066836d62fc3
parentde1e7b451195466ca977a50670e11cf4a7e3796d
jlink: Hash of module differs to expected hash recorded in java.base

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=944738
Forwarded: not-needed

The cause is the use of dh_strip_nondeterminism late in the build
process.  This reorganises the jmod files, which in turn changes their
SHA256 checksums.  This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism.  Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.

Gbp-Pq: Name reproducible-build-jmod.diff
make/CreateJmods.gmk